import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/common/index'
import Content from '@/common/content'
import Login from '@/common/login'
import Message from '@/common/message'
import More from '@/common/more'
import My from '@/common/my'
import People from '@/common/people'
import Publish from '@/common/publish'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect:  '/vue-home/dist'
    },
    {
      path: '/vue-home/dist',
      name: 'index',
      component: Index
    },
    {
      path: '/vue-home/dist/message',
      name: 'message',
      component: Message
    },
    {
      path: '/vue-home/dist/my',
      name: 'my',
      component: My
    },
    {
      path: '/vue-home/dist/publish',
      name: 'publish',
      component: Publish
    },
     {
      path: '/vue-home/dist/login',
      name: 'login',
      component: Login
    },
    {
      path: '/vue-home/dist/more',
      name: 'more',
      component: More
    },
    {
      path: '/vue-home/dist/content',
      name: 'content',
      component: Content
    },
     {
      path: '/vue-home/dist/people',
      name: 'people',
      component: People
    }
    
  ]
})
